package factory.bean;

import java.util.List;

public class DriverLicenseByCar extends DriverLicence{

    private Integer driverAge;
    private List<String> driverModel;

    public Integer getDriverAge() {
        return driverAge;
    }

    public void setDriverAge(Integer driverAge) {
        this.driverAge = driverAge;
    }

    public List<String> getDriverModel() {
        return driverModel;
    }

    public void setDriverModel(List<String> driverModel) {
        this.driverModel = driverModel;
    }

    public DriverLicenseByCar(Integer driverAge, List<String> driverModel) {
        this.driverAge = driverAge;
        this.driverModel = driverModel;
    }

    @Override
    public void showLicense() {
        System.out.println("这是一个C级别驾驶证, 驾驶车龄" + driverAge + "年, 可以驾驶的车型有:" + driverModel);
    }
}
